﻿using CoreModule;

using EasyNetQ;


using (var bus = RabbitHutch.CreateBus("host=192.168.210.200:36005;virtualHost=/;timeout=60;username=admin;password=123456")) {
    while (true) {
        bus.SendReceive.Send("us.msg", new TextMessage { Text = "Hello,UnitySir" + DateTime.Now });
        Console.WriteLine("发送消息!" + DateTime.Now);
        Thread.Sleep(1000);
    }
}